<%@ page language="java" import="java.util.*,java.text.*,other.*" pageEncoding="utf-8"%>
<%
   List filelist=(List)session.getAttribute("ListRows");         
   String BeginTime=(String)session.getAttribute("BeginTime");
   String EndTime=(String)session.getAttribute("EndTime");
   String CustomerName=(String)session.getAttribute("CustomerName");
   String StandMan=(String)session.getAttribute("StandMan");
   String TransType=(String)session.getAttribute("TransType");
   String Province=(String)session.getAttribute("Province");
   String FlowState=(String)session.getAttribute("FlowState");   
   GetYToday T=new GetYToday();
   SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); 
   SimpleDateFormat sdft=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");    
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<iframe name="summaryfrm"  scrolling="no" frameborder="0" style="position: absolute; top: 0px; left: 0px; display: none; border: #909eff 1px solid;"></iframe>
	<iframe name="summaryfrmsave"  scrolling="no" frameborder="0" style="display: none;"></iframe>
	<head>
		<title>日进销存监控</title>
		<link rel="stylesheet" type="text/css" media="all" href="skins/aqua/theme.css" />
		<link type="text/css" rel="stylesheet" href="JSDate/skin/WdatePicker.css" />
        <script type="text/javascript" src="JS/calendar.js"></script>
        <script type="text/javascript" src="JS/calendar-en.js"></script>
		<script type="text/javascript" src="JS/calendar-setup.js"></script>
		<script type="text/javascript" src="JSDate/WdatePicker.js"></script>		
		<script type="text/javascript">
			var inputObj = null;
			var targetObj = null;
			var dragObj = null;
			var mouseOffset = null;
			var isHidden=null;
			
			document.onclick=closeItemSelect; 
			
			function hiddenFrm(){
			  document.getElementById("summaryfrm").style.display = "none";	
			}
			function hiddenSaveFrm(){
			  document.getElementById("summaryfrmsave").style.display = "none";
			}
			function closeItemSelect(evt)
			{
				var _obj = document.getElementById("summaryfrm");
				if(isHidden == "block"){
					isHidden = "none";
				}else{
					_obj.style.display = "none";
				}	
			}
			
			Number.prototype.NaN0 = function() {
			        return isNaN(this) ? 0 : this;
			};
			
			function selectProvince(e,flag){ 
			    //window.frames["summaryfrmprovince"].location.reload(); 
			    document.frames["summaryfrm"].document.body.innerText=" ";
			    //document.frames["summaryfrmprovince"].location.href="about:blank ";      
				switchtype=flag;
				isHidden = "block";
				var _target = getPosition(e);
			    var _obj = document.getElementById("summaryfrm");
			    _obj.style.left = _target.x;
			    _obj.style.top = _target.y + e.clientHeight;
			    _obj.style.height="430px";
			    _obj.style.width="700px";
			    _obj.style.zIndex = 5000;
			    _obj.style.display = "block";
				var strUrl = "";	
			    strUrl = "ProvincePage\\ProvinceQuery.jsp";
			    document.summaryfrm.location.href = strUrl;
			}
			
			function selectCustomer(e,flag){
			    //document.frames("summaryfrm").location.reload();
			    document.frames["summaryfrm"].document.body.innerText=" ";
				switchtype=flag;
				isHidden = "block";
				var _target = getPosition(e);
			    var _obj = document.getElementById("summaryfrm");
			    _obj.style.left = _target.x;
			    _obj.style.top = _target.y + e.clientHeight;
			    _obj.style.height="430px";
			    _obj.style.width="700px";
			    _obj.style.zIndex = 5000;
			    _obj.style.display = "block";
				var strUrl = "";	
			    strUrl = "CustomerQuery.jsp";
			    document.summaryfrm.location.href = strUrl;
			}
			
			function frm_mselect(e,flag){
				switchtype=flag;
				isHidden = "block";
				var _target = getPosition(e);
			    var _obj = document.getElementById("summaryfrm");
			    _obj.style.left = _target.x;
			    _obj.style.top = _target.y + e.clientHeight;
			    _obj.style.height="100px";
			    _obj.style.width="400px";
			    _obj.style.zIndex = 5000;
			    _obj.style.display = "block";
				var strUrl = "";	
			    strUrl = "CheckPopWindow.jsp";
			    document.summaryfrm.location.href = strUrl;
			} 
			function getPosition(e) {
			    var left = 0;
			    var top = 0;
			    while(e.offsetParent){         
			         left =left+e.offsetLeft + (e.currentStyle ? (parseInt(e.currentStyle.borderLeftWidth)).NaN0() : 0);         
			         top=top+e.offsetTop + (e.currentStyle ? (parseInt(e.currentStyle.borderTopWidth)).NaN0() : 0);
			         e = e.offsetParent;
			    }
			    left = left+e.offsetLeft + (e.currentStyle ? (parseInt(e.currentStyle.borderLeftWidth)).NaN0() : 0);
			    top =top+e.offsetTop + (e.currentStyle ? (parseInt(e.currentStyle.borderTopWidth)).NaN0() : 0);
			    return {x:left, y:top};
			}
			function setmValue(m_chocievalue){
			   form2.flowstate.value=m_chocievalue;      
			   hiddenFrm();
			}
			function setSaveValue(){
			   alert("催收记录保存成功!");
			   hidDiv('submit');
			}
			function setCustomerName(customername,customercode){
			   form2.customername.value=customername; 
			   hiddenFrm();
			}
			function setProvince(provincename){
			   form2.province.value=provincename;
			   hiddenFrm();
			}                       
			function CustomerCollect(element,urgetime,questionoccurtime,urgeobjectcode,urgeobjectname,num){
			  //催收
				trindex = num;
				var W = document.documentElement.scrollWidth;
				var H = document.documentElement.scrollHeight;
				var selfW = document.getElementById(element).style.width;
				var selfH = document.getElementById(element).style.height;
				document.getElementById(element).style.left = (W - parseInt(selfW)) / 2 + 'px';
				document.getElementById(element).style.top = (H - parseInt(selfH)) / 2 + 'px';
				document.form1.urgetime.value=urgetime;
				document.form1.questionoccurtime.value=questionoccurtime;
				document.form1.urgeobjectcode.value=urgeobjectcode;
				document.form1.urgeobjectname.value=urgeobjectname;
				document.getElementById(element).style.display = 'block';
				var mDiv = document.getElementById("mDiv");
				mDiv.style.display = '';
				document.form1.subbutton.focus();
			}

     function hidDiv(element) {
		    document.getElementById(element).style.display = 'none';
		    document.getElementById("mDiv").style.display = 'none';
		    page_initDiv();
	  }
		var popwindow;
		function page_initDiv(){
			document.form1.urgetime.value="";
		    document.form1.questionoccurtime.value="";
		    document.form1.urgeobjectcode.value="";
		    document.form1.urgeobjectname.value="";
		}

		window.onload = function() {
		    var newMask = document.createElement("div");
		    newMask.id = "mDiv";
		    newMask.style.position = "absolute";
		    newMask.style.zIndex = "5000";
		    _scrollWidth = Math.max(document.body.scrollWidth, document.documentElement.scrollWidth);
		    _scrollHeight = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
		    newMask.style.width = "100%";
		    newMask.style.height = "110%";
		    newMask.style.top = "0px";
		    newMask.style.left = "0px";
		    newMask.style.background = "#33393C";
		    newMask.style.filter = "alpha(opacity=40)";
		    newMask.style.opacity = "0.40";
		    newMask.style.display = 'none';
		    newMask.innerHTML = '<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);"></iframe>'
		    document.body.appendChild(newMask);
		    document.getElementById("submit").style.zIndex = "5002";
		    var objDrag = document.getElementById("close");
		    var drag = false;
		    var dragX = 0;
		    var dragY = 0;
		    objDrag.attachEvent("onmousedown", startDrag);
		    function startDrag() {
		        if (event.button == 1 && event.srcElement.tagName.toUpperCase() == "DIV") {
		            event.srcElement.setCapture();
		            drag = true;
		            dragX = event.clientX;
		            dragY = event.clientY;
		        }
		    };
		    objDrag.attachEvent("onmousemove", Drag);
		    function Drag() {
		        if (drag) {
		            var oldwin = event.srcElement.parentNode;
		            oldwin.style.left = oldwin.offsetLeft + event.clientX - dragX;
		            oldwin.style.top = oldwin.offsetTop + event.clientY - dragY;
		            oldwin.style.left = event.clientX - 100;
		            oldwin.style.top = event.clientY - 10;
		            dragX = event.clientX;
		            dragY = event.clientY;
		        }
		    };
		    objDrag.attachEvent("onmouseup", stopDrag);
		    function stopDrag() {
		        event.srcElement.releaseCapture();
		        drag = false;
		    };			
		}
		
		var xmlHttp=null;
		function GetXmlHttpObject(){
			try {
				xmlHttp = new XMLHttpRequest();
			} catch (e) {
				try {
					xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
			}
			return xmlHttp;
		}
		
		function saveurgerecord(){		  
		  var url="SaveUrgeRecord.jsp";
		  url=url+"?urgetime="+document.getElementById("urgetime").value;
		  url=url+"&questionoccurtime="+document.getElementById("questionoccurtime").value;
		  url=url+"&urgeobjectcode="+document.getElementById("urgeobjectcode").value;
		  url=url+"&urgeobjectname="+document.getElementById("urgeobjectname").value;
		  url=url+"&urgequestion="+document.getElementById("urgequestion").value;
		  url=url+"&urgeresult="+document.getElementById("urgeresult").value;
          url=url+"&urgerecord="+document.getElementById("urgerecord").value;
          url=url+"&datetype=D";          
          document.summaryfrmsave.location.href = url;  
		}
		function stateChanged(){
		  if(xmlHttp.readyState==4){
		     if(xmlHttp.status==200){
		       window.alert("催收记录保存成功!");
		       hidDiv('submit')
		     }
		  }
		}
		
		function ExportData(){
	      //xmlHttp = GetXmlHttpObject();
	      //if (xmlHttp == null) {
		  //    alert("you browser don't support the ajax");
		  //    return;
	      //}		   
		  //var checkurl="ExPortDayData.jsp?sid="+ Math.random();		      
		  //xmlHttp.onreadystatechange = stateExportChanged;
          //xmlHttp.open("GET", checkurl, true);                          
	      //xmlHttp.send(null);
	      window.location.href="ExPortDayData.jsp";			            			  		   			   
		}
	    function stateExportChanged(){
	      if(xmlHttp.readyState==4){
		     if(xmlHttp.status==200){
	            //window.alert("文件名修改成功!");
		     }else{
		        //window.alert("文件名修改失败!");
		     }
		  }
		}			
</script>
	</head>

	<body>
	    <div align="center"><h2>日进销存监控</h2></div>
		<form action="QueryDayMonitor.jsp" method="post" name="form2">
			<table border="1" width="1390">
				<tr>
					<td width="120" align="center">开始时间</td>
	                <%if ((BeginTime!=null) && (!BeginTime.equals(""))) {%>
						 <td width="130" align="center">
							 <input name="begintime" type="text" value="<%=BeginTime%>" id="input_a" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="cursor:hand"/>
						 </td>
                    <% } else { %>
				         <td width="130" align="center">
					         <input name="begintime" type="text" value="<%=T.getCDate()%>" id="input_a" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="cursor:hand"/>
				         </td> 
                    <%}%>
                    <td width="120" align="center">结束时间</td>				
	                <%if ((EndTime!=null) && (!EndTime.equals(""))) {%>
						 <td width="130" align="center">
							 <input name="endtime" type="text" value="<%=EndTime%>" id="input_b" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="cursor:hand"/>
						 </td>
                    <% } else { %>
				         <td width="130" align="center">
					         <input name="endtime" type="text" value="<%=T.getCDate()%>" id="input_b" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="cursor:hand"/>
				         </td> 
                    <%}%>
					<td width="80" align="center">客户</td>
                    <%if ((CustomerName!=null) && (!CustomerName.equals(""))){%>
					      <td width="70" align="center">
						      <input name="customername" type="text" onclick="selectCustomer(this,1);" style="width: 70px;" value="<%=CustomerName%>"></input>
					      </td> 
                    <%} else {%>
					      <td width="70" align="center">
						      <input name="customername" type="text" onclick="selectCustomer(this,1);" style="width: 70px;" value=""></input>
					      </td>
                    <%}%>					
					<td width="80" align="center">
						代表
					</td>
                    <%if ((StandMan!=null) && (!StandMan.equals(""))){%>
					     <td width="70" align="center">
						     <input name="standman" type="text" style="width: 70px;" value=<%=StandMan%>></input>
					     </td>
                    <%} else {%>
					     <td width="70" align="center">
						     <input name="standman" type="text" style="width: 70px;" value=""></input>
					     </td>
                    <%}%>                    					
					<td width="120" align="center">
						传输方式
					</td>
                    <%if ((TransType!=null) && (!TransType.equals(""))){%>
					     <td width="70" align="center">
						    <input name="transtype" type="text" style="width: 70px;" value="<%=TransType%>"></input>
					     </td>
                    <%} else {%>
					     <td width="70" align="center">
						    <input name="transtype" type="text" style="width: 70px;" value=""></input>
					     </td>
                    <%}%> 					
										
					<td width="80" align="center">
						省份
					</td>
                    <%if ((Province!=null) && (!Province.equals(""))){%>
							<td width="70" align="center">
								<input name="province" type="text" style="width: 70px;" onclick="selectProvince(this,1);" value="<%=Province%>"></input>
							</td>
                    <%} else {%>
							<td width="70" align="center">
								<input name="province" type="text" style="width: 70px;" onclick="selectProvince(this,1);" value=""></input>
							</td>
                    <%}%> 					
					<td width="180" align="center">
						流向上传情况
					</td>
                    <%if ((FlowState!=null) && (!FlowState.equals(""))){%>
							<td width="70" align="center">
								<input name="flowstate" id="flowstate" type="text" style="width: 90px;" onclick="frm_mselect(this,1);" value="<%=FlowState%>"></input>
							</td>
                    <%} else {%>
							<td width="70" align="center">
								<input name="flowstate" id="flowstate" type="text" style="width: 90px;" onclick="frm_mselect(this,1);" value=""></input>
							</td>
                    <%}%>					
					<td width="60" align="center">
						<input type="submit" name="query" id="query" value="查   询"></input>
					</td>
					<td width="60" align="center">
						<input type="button" name="export" id="export" onclick="ExportData();" value="导   出" style="cursor:hand"></input>
					</td>
				</tr>
			</table>
		</form>
  <form action="SaveUrgeRecord.jsp" method="post" name="form1">
  <table width="4890" border="0" align=center cellpadding="1" cellspacing="1" bgcolor="#C0C0C0" style="border-collapse: collapse">
    <tbody>
      <tr bgcolor="#F5F5F5" align="center" height="22">
        <td width="120" align="center" height="30">时间</td>       
        <td width="100" align="center" height="30">省份</td>
        <td width="100" align="center" height="30">城市</td>
        <td width="100" align="center" height="30">县域</td>
        <td width="80" align="center" height="30">客户编码</td>
        <td width="120" align="center" height="30">客户名称</td>
        <td width="260" align="center" height="30">调整前采购文件名</td>
        <td width="260" align="center" height="30">调整前销售文件名</td>
        <td width="260" align="center" height="30">调整前库存文件名</td>
        <td width="80" align="center" height="30">对应代表</td>
        <td width="110" align="center" height="30">代表联系方式</td>
        <td width="130" align="center" height="30">商业技术联系人</td>
        <td width="150" align="center" height="30">商业技术联系电话</td>
        <td width="80" align="center" height="30">客户属性</td>
        <td width="80" align="center" height="30">传输方式</td>
        <td width="120" align="center" height="30">采购传输时间</td>
        <td width="120" align="center" height="30">销售传输时间</td>
        <td width="120" align="center" height="30">库存传输时间</td>
        <td width="150" height="30" align="center"> 
          <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr align="center">
                <td  colspan="5" bgcolor="#F5F5F5" align="center"  height="30">数据获取情况</td>
              </tr>
              <tr></tr>
              <tr align="center" >
                <td width="50" align="center"  height="30" bgcolor="#F5F5F5">采购</td>
                <td></td>
                <td width="50" align="center"  height="30" bgcolor="#F5F5F5">销售</td>
                <td></td>
                <td width="50" align="center"  height="30" bgcolor="#F5F5F5">库存</td>
              </tr>
            </tbody>
          </table>
        </td>
        <td width="150">
          <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr bgcolor="#F5F5F5" align="center">
                <td colspan="5" width="150" align="center" height="30">数据获取状态</td>
              </tr>
              <tr></tr>
              <tr align="center">
                <td width="50" align="center" height="30" bgcolor="#F5F5F5">采购</td>
                <td></td>
                <td width="50" align="center" height="30" bgcolor="#F5F5F5">销售</td>
                <td></td>
                <td width="50" align="center" height="30" bgcolor="#F5F5F5">库存</td>
              </tr>
            </tbody>
          </table>
        </td>        
        <td width="1920">
        <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr align="center">
                <td width="1920" colspan="35" bgcolor="#F5F5F5" align="center" height="30" >文件信息</td>
              </tr>
              <tr></tr>
              <tr align="center">
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">原始采购条数</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">系统采购条数</td>
                <td></td>
                <td width="80" align="center" height="30" bgcolor="#F5F5F5">差异</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">原始采购汇总</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">系统采购汇总</td>
                <td></td>
                <td width="80" align="center" height="30" bgcolor="#F5F5F5">差异</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">原始销售条数</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">系统销售条数</td>
                <td></td>
                <td width="80" align="center" height="30" bgcolor="#F5F5F5">差异</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">原始销售汇总</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">系统销售汇总</td>
                <td></td>
                <td width="80" align="center" height="30" bgcolor="#F5F5F5">差异</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">原始库存条数</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">系统库存条数</td>
                <td></td>
                <td width="80" align="center" height="30" bgcolor="#F5F5F5">差异</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">原始库存汇总</td>
                <td></td>
                <td width="120" align="center" height="30" bgcolor="#F5F5F5">系统库存汇总</td>
                <td></td>
                <td width="80" align="center" height="30" bgcolor="#F5F5F5">差异</td>                                                 
              </tr>                
            </tbody>
        </table>
        </td>        
        <td width="240">
        <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr align="center">
                <td colspan="5" width="240" bgcolor="#F5F5F5" align="center" height="30">数据采集期间</td>
              </tr>
              <tr></tr>
              <tr align="center">
                <td width="80" bgcolor="#F5F5F5" align="center" height="30">采购</td>
                <td></td>
                <td width="80" bgcolor="#F5F5F5" align="center" height="30">销售</td>
                <td></td>
                <td width="80" bgcolor="#F5F5F5" align="center" height="30">库存</td>              
              </tr>
            </tbody>
        </table>
        </td>
        <td width="40">催收</td>              
      </tr>
      <% if ((filelist!=null) || (filelist.size()==0)){                
             for(int k=0;k<filelist.size();k++){
                 String s=filelist.get(k).toString();
                 s=s.replace("]","");
                 s=s.replace("[","");
                 String[] m=s.trim().split(",");                                 	     	           
      %>
      <tr>
        <% if (m[44]!=null) { %>
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[44].trim()%></td>           
        <%} else {%>  
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>      
        <% if (m[0]!=null) { %>
           <td width="100"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[0].trim()%></td>           
        <%} else {%>  
           <td width="100"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>
        <% if (m[1]!=null) { %>
           <td width="100"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[1].trim()%></td>           
        <%} else {%>  
           <td width="100"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>               
        <% if (m[2]!=null) { %>
           <td width="100"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[2].trim()%></td>           
        <%} else {%>  
           <td width="100"  align="center" bgcolor="#FFFFFF" height="30">1</td>
        <%}%>         
        <% if (m[3]!=null) { %>
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[3].trim()%></td>           
        <%} else {%>  
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30">1</td>
        <%}%>         
         <% if (m[4]!=null) { %>
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[4].trim()%></td>           
        <%} else {%>  
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>        
         <% if (m[5]!=null) { %>
           <td width="260"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[5].trim()%></td>           
        <%} else {%>  
           <td width="260"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>        
         <% if (m[6]!=null) { %>
           <td width="260"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[6].trim()%></td>           
        <%} else {%>  
           <td width="260"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>         
        <% if (m[7]!=null) { %>
           <td width="260"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[7].trim()%></td>           
        <%} else {%>  
           <td width="260"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>       
        <% if (m[8]!=null) { %>
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[8].trim()%></td>           
        <%} else {%>  
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>        
        <% if (m[9]!=null) { %>
           <td width="110"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[9].trim()%></td>           
        <%} else {%>  
           <td width="110"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>        
        <% if (m[10]!=null) { %>
           <td width="130"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[10].trim()%></td>           
        <%} else {%>  
           <td width="130"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>        
        <% if (m[11]!=null) { %>
           <td width="150"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[11].trim()%></td>           
        <%} else {%>  
           <td width="150"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>
        <% if (m[12]!=null) { %>
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[12].trim()%></td>           
        <%} else {%>  
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>
        <% if (m[13]!=null) { %>
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[13].trim()%></td>           
        <%} else {%>  
           <td width="80"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>        
        <% if (m[14]!=null) { %>
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[14].trim()%></td>           
        <%} else {%>  
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>
        <% if (m[15]!=null) { %>
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[15].trim()%></td>           
        <%} else {%>  
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>
        <% if (m[16]!=null) { %>
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"><%=(String)m[16].trim()%></td>           
        <%} else {%>  
           <td width="120"  align="center" bgcolor="#FFFFFF" height="30"></td>
        <%}%>                
		<td width="150" align="center" bgcolor="#FFFFFF"> 
          <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr align="center">
		        <% if (m[17]!=null) { %>
		           <td width="50" align="center"  bgcolor="#FFFFFF" height="60"><%=(String)m[17].trim()%></td>           
		        <%} else {%>  
		           <td width="50" align="center"  bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
		        <% if (m[18]!=null) { %>
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[18].trim()%></td>           
		        <%} else {%>  
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
		        <% if (m[19]!=null) { %>
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[19].trim()%></td>           
		        <%} else {%>  
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
              </tr>
            </tbody>
          </table>
        </td>
        <td width="150" align="center" bgcolor="#FFFFFF">
          <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr>
		        <% if (m[20]!=null) { %>
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[20].trim()%></td>           
		        <%} else {%>  
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
		        <% if (m[21]!=null) { %>
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[21].trim()%></td>           
		        <%} else {%>  
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
		        <% if (m[22]!=null) { %>
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[22].trim()%></td>           
		        <%} else {%>  
		           <td width="50"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>		        		                      
              </tr>
            </tbody>
          </table>
        </td>        
        <td width="1920" align="center" bgcolor="#FFFFFF">
        <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr>
		        <% if (m[23]!=null) { %>
		           <td width="120" align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[23].trim()%></td>           
		        <%} else {%>  
		           <td width="120" align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
		        <% if (m[24]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[24].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>               
		        <% if (m[25]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[25].trim()%></td>           
		        <%} else {%>  
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>               
		        <% if (m[26]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[26].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
		        <% if (m[27]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[27].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>             
 		        <% if (m[28]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[28].trim()%></td>           
		        <%} else {%>  
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>             
 		        <% if (m[29]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[29].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>              
 		        <% if (m[30]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[30].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>              
 		        <% if (m[31]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[31].trim()%></td>           
		        <%} else {%>  
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>                
 		        <% if (m[32]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[32].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>               
 		        <% if (m[33]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[33].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[34]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[34].trim()%></td>           
		        <%} else {%>  
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[35]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[35].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[36]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[36].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[37]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[37].trim()%></td>           
		        <%} else {%>  
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[38]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[38].trim()%></td>           
		        <%} else {%>  
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[39]!=null) { %>
		           <td width="120"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[39].trim()%></td>           
		        <%} else {%>  
		          <td width="120"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[40]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[40].trim()%></td>           
		        <%} else {%>  
		          <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
              </tr>                
            </tbody>
        </table>
        </td>        
        <td width="240" align="center" bgcolor="#FFFFFF">
        <table border="0" align=center cellpadding="0" cellspacing="0" bgcolor="#C0C0C0" style="border-collapse: collapse">
            <tbody>
              <tr>
 		        <% if (m[41]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[41].trim()%></td>           
		        <%} else {%>  
		          <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[42]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[42].trim()%></td>           
		        <%} else {%>  
		          <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>
		        <td bgcolor="#C0C0C0" width="1"></td>
 		        <% if (m[43]!=null) { %>
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"><%=(String)m[43].trim()%></td>           
		        <%} else {%>  
		           <td width="80"  align="center" bgcolor="#FFFFFF" height="60"></td>
		        <%}%>		        		                                  
              </tr>
            </tbody>
        </table>
        </td>
        <td width="40" align="center" bgcolor="#FFFFFF"><input type="button" name="collection" value="催收" style="cursor:hand" onclick="CustomerCollect('submit','<%=sdft.format(new Date())%>','<%=sdft.format(new Date())%>','<%=(String)m[3].trim()%>','<%=(String)m[4].trim()%>',1);"></input></td>              
      </tr> 
      <%}} %>            
   </tbody>
  </table>
    
    <div id="submit" style="background:white;width:700px;height:125px;border:5px #999999 double;position:absolute;display:none">
    <div id="close" class="deepblue-left" style="width:700px;height:20px;text-align:right;cursor:move;">
	   <font color="#FF0000">添加经销商催收信息:</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;
	  <img src="images/Close.gif" style="cursor:hand" onclick="hidDiv('submit')">	   
	</div>
    <div style="text-algin:center;height:100px;">        
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td>;
                     <table border="1" id="ta" width="694px" cellspacing="0" cellpadding="0" align="center">
                        <tr>
                            <td class="td-text">催收时间:</td>
                            <td><input type="text"  name="urgetime" id="urgetime" value="<%=T.getCDate()%>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" style="width:300px;cursor:hand;"></input>
                            </td>
                        </tr>
                        <tr>
                            <td class="need">问题发生时间:</td>
                            <td><input type="text"  name="questionoccurtime" id="questionoccurtime" value="<%=T.getCDate()%>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" style="width:300px;cursor:hand;"></input>
                           
                            </td>
                        </tr>
                        <tr>
                            <td class="need">催收对象代码:</td>
           					<td>
                                <input type="text"  name="urgeobjectcode" id="urgeobjectcode" value=""></input>
           				    </td>
           				</tr>
                        <tr>
                            <td class="need">催收对象名称:</td>
           					<td>
                                <input type="text"  name="urgeobjectname" id="urgeobjectname" size=60 value=""></input>
           				    </td>
           				</tr>           				
           				<tr>
							<td class="td-text">催收问题:</td>
            				<td> 
            					<input type="text" name="urgequestion" id="urgequestion" size="80" value=""></input>
            				</td>            				
                        </tr>
                        <tr>
            				<td class="td-text">催收结果:</td>
          					<td>            					
	           					<select name="urgeresult" id="urgeresult">
	           					   <option value="催收成功">催收成功</option>
	           					   <option value="转商务代表处理">转商务代表处理</option>
	           					   <option value="转商务经理处理">转商务经理处理</option>
	           					   <option value="转商业技术处理">转商业技术处理</option>
	           					   <option value="转寰通处理">转寰通处理</option>
	           					   <option value="转信息部处理">转信息部处理</option>
	           					</select>            					
           					</td>
           				</tr>
           				<tr>
							<td class="td-text">催收结果内容记录:</td>
            				<td>
              					<input type="text"  name="urgerecord" id="urgerecord" size="85" value=""></input>
            				</td>  
          				</tr>
          				<tr>
                            <td class="td_center" colspan="4">
							    <input type="hidden" name="neworgid" value="">
                                <input type="button" name="subbutton" style="width:60px;" value="确认" onclick="saveurgerecord();"/>
                                <input type=button value="取消" onclick="hidDiv('submit')" style="width:60px;">
                            </td>
                        </tr>
                    </table>                 
                </td>
            </tr>
        </table>
    </div>
</div>  
</form>
	</body>
</html>
